BMI\Plugin\BMI_Ajax D

Total Complexity 908
Dependencies 24
Dependents 1
Total lines 3,894
Lines of code 2,791
Logical lines of code 2,287
Comment lines 326
Methods 62
Properties 8

Methods 62

Method Rating Maintainability Complexity Lines of code
prepareAndMakeBackup()
D
15
74 223
restoreBackup()
D
17
64 204
parseFilesForBackup()
D
21
66 155
saveOtherOptions()
D
20
63 171
saveStorageConfig()
D
22
63 152
__construct()
D
25
57 120
saveFilesConfig()
D
24
46 148
createBackup()
D
32 43 85
scanFilesForBackup()
D
27
40 120
sendTroubleshootingDetails()
D
24
36 158
handleQuickMigration()
D
27
29 132
calculateCron()
C
33 26 91
migrationExceptionHandler()
C
34 25 81
removeBackupFile()
B
37 23 64
forceRestoreToStop()
B
40 22 55
backupErrorHandler()
B
38 21 63
forceBackupToStop()
B
42 19 47
saveStorageTypeConfig()
A
42 14 45
checkStagingLocalName()
A
41 13 52
frontEndAjaxError()
A
45 12 37
resetLatestLogs()
A
44 10 40
isMigrationLocked()
A
50 10 25
checkIfPHPCliExist()
A
48 9 31
downloadFile()
A
45 8 40
rrmdir()
A
55 9 19
tastewpStagingCreation()
A
55 8 17
debugging()
S
51 7 23
checkDiskSpace()
S
49 6 29
getLatestBackupFile()
S
52 5 24
isRunningBackup()
S
56 5 16
sendTestMail()
S
59 5 13
makeBackupName()
S
45 3 39
toggleBackupLock()
S
57 4 15
actionsAfterProcess()
S
59 4 14
startLocalStagingCreation()
S
59 4 13
localStagingCreationProcess()
S
59 4 13
logSharing()
S
61 4 12
dirSize()
S
53 3 21
backupBrowserMethodHandler()
S
55 3 18
getDynamicNames()
S
57 3 17
siteURL()
S
69 4 5
revertUnameProcess()
S
64 3 9
isFunctionEnabled()
S
68 3 6
stopBackup()
S
63 3 10
isStagingSiteCreationOngoing()
S
66 3 8
resetConfiguration()
S
62 2 12
fixUnameFunction()
S
61 2 11
migrationErrorHandler()
S
63 2 10
backupExceptionHandler()
S
63 2 10
checkCompatibility()
S
66 2 7
stagingDelete()
S
69 1 6
stagingPrepareLogin()
S
69 1 6
continueRestoreProcess()
S
91 1 2
stagingRename()
S
67 1 7
stagingSitesGetList()
S
69 1 6
getDatabaseSize()
S
66 1 8
getBackupsList()
S
69 1 6
getSiteData()
S
69 1 6
handleChunkUpload()
S
80 1 3
fixLitespeed()
S
76 1 4
revertLitespeed()
S
76 1 4
dismissErrorNotice()
S
81 1 3